package com.zytlifeservice.repository.pay;

import com.zytlifeservice.domain.pay.WaterCoalOrder;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by MJS on 2017/6/1.
 */
public interface WaterCoalOrderRepository extends JpaRepository<WaterCoalOrder, Long> {
    public WaterCoalOrder findByOutTradeNo(String outTradeNo);

    public WaterCoalOrder findByOutTradeNoAndUserIdAndType(String outTrade, Long userId, String type);

    public List<WaterCoalOrder> findAllByUserIdAndType(Long userId, String type);
}
